﻿using System;
using System.Collections.Generic;
using ZX.CRM.Library;
using ZX.CRM.Bussiness;

namespace ZX.CRM.Library
{
    public class RptAllCustomerInfo : V_CrmManager
    {
        #region===============客户统计使用方法===============
        /// <summary>
        /// 获取联系人
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmManager> GetCrmManagerList(Guid customerId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmManager> listLinkMan = bll.GetLinkManagertInfoByCustomerId(customerId);
            return listLinkMan;
        }
        /// <summary>
        /// 获取行销工作记录
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmActivityTel> GetCrmLinkRecord(Guid customerId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmActivityTel> listLinkRecord = bll.GetLinkRecordInfoByCustomerId(customerId);
            return listLinkRecord;
        }
        /// <summary>
        /// 获取工作记录
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmActivityCall> GetCrmLinkManChoice(Guid customerId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmActivityCall> listLinkManChoice = bll.GetLinkChoiceInfoByCustomerId(customerId);
            return listLinkManChoice;
        }
        /// <summary>
        /// 获取订单
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmCustomerInfoOrder> GetCrmOrder(Guid customerId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmCustomerInfoOrder> listCustomerOrder = bll.GetAllOrderInfos(customerId);
            return listCustomerOrder;
        }
        /// <summary>
        /// 获取缴款单
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmProductPay> GetCrmPay(Guid OrderProductId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmProductPay> listCustomerPay = bll.GetProductPayByOrderProductId(OrderProductId);
            return listCustomerPay;
        }
        /// <summary>
        /// 获取讲师总结
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmTeachSumup> GetCrmTeachSump(Guid customerId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmTeachSumup> listTeachSumup = bll.GetAllTeachSumup(customerId);
            return listTeachSumup;
        }
        /// <summary>
        /// 获取公开课信息
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmDeliverMajor> GetCrmDeliverMajor(Guid OrderProductId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmDeliverMajor> listDeliverMajor = bll.GetAllDeliverMajorByOrderProductId(OrderProductId);
            return listDeliverMajor;
        }
        /// <summary>
        /// 获取内训信息
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmDeliverTrain> GetCrmDeliverTrain(Guid OrderProductId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmDeliverTrain> listDeliverTrain = bll.GetAllDeliverTrainByOrderProductId(OrderProductId);
            return listDeliverTrain;
        }
        /// <summary>
        /// 获取项目信息
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        public static IList<V_CrmDeliverMajorProInfo> GetCrmDeliverProInfo(Guid OrderProductId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmDeliverMajorProInfo> listDeliverProInfo = bll.GetAllDeliverProInfoByOrderProductId(OrderProductId);
            return listDeliverProInfo;
        }
        /// <summary>
        /// 根据订单获取所有订单产品信息
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        public static IList<V_CrmOrderProductInfo> GetCrmOrderProductByOrderId(Guid orderId)
        {
            BTCrmCrustomerOrder bll = new BTCrmCrustomerOrder();
            IList<V_CrmOrderProductInfo> listOrderProduct = bll.GetAllOrderProductListByOrderId(orderId);
            return listOrderProduct;
        }
        #endregion

        #region===============交付统计使用方法===============
        /// <summary>
        /// 获取客户规划期数数据信息
        /// </summary>
        /// <param name="productId"></param>
        /// <returns></returns>
        public IList<V_CrmCustomerDeliverStatistics> GetAllLayoutList(string productId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmCustomerDeliverStatistics> list = bll.GetAllLayoutList(productId);
            return list;
        }
        /// <summary>
        /// 获取所有分公司数据信息
        /// </summary>
        /// <param name="productId"></param>
        /// <returns></returns>
        public IList<V_CrmCustomerDeliverStatistics> GetAllDeptList(string layoutId)
        {
            BTCrmCustomer bll = new BTCrmCustomer();
            IList<V_CrmCustomerDeliverStatistics> list = bll.GetAllDeptList(layoutId);
            return list;
        }
        #endregion
    }
}